package com.example.mystore.model;

import java.util.Date;
import java.util.List;

public class ProductCategory {

    private Integer id; // id 自动增长列
    private Integer parentId; // 父类ID，id为0时为根结点，为一类节点
    private String name; // 类别名称
    private Integer sortOrder; // 同类展示顺序
    private Integer status = 1;  // 状态编码，1有效，0无效
    private Integer level; // 节点级别,顶层节点为0，依次类推
    private Date created; // 创建时间
    private Date updated; // 更新时间

    private List<ProductCategory> children;

    // Getters and Setters

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public List<ProductCategory> getChildren() {
        return children;
    }

    public void setChildren(List<ProductCategory> children) {
        this.children = children;
    }
}
